package etec.foxsoft.telas;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JSeparator;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JPasswordField;

public class Users extends JFrame {

	private JPanel contentPane;
	private JTextField campo_id;
	private JTextField campo_user;
	private JTextField campo_nome;
	private JPasswordField senha_senha;
	private JPasswordField senha_confirmar;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Users frame = new Users();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Users() {
		setResizable(false);
		setTitle("FoxSoft1.0V");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 450, 480);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblLogo = new JLabel("");
		lblLogo.setIcon(new ImageIcon(Users.class.getResource("/Imagens/Logo_Paris.png")));
		lblLogo.setBounds(10, 0, 232, 99);
		contentPane.add(lblLogo);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(10, 112, 103, 14);
		contentPane.add(separator);
		
		JLabel lblNomeCentral = new JLabel("Cadastro de Usu\u00E1rio");
		lblNomeCentral.setHorizontalAlignment(SwingConstants.CENTER);
		lblNomeCentral.setFont(new Font("Tahoma", Font.PLAIN, 20));
		lblNomeCentral.setBounds(123, 101, 188, 25);
		contentPane.add(lblNomeCentral);
		
		JSeparator separator_1 = new JSeparator();
		separator_1.setBounds(321, 112, 103, 14);
		contentPane.add(separator_1);
		
		JButton botao_func = new JButton("Funcion\u00E1rio");
		botao_func.setBounds(10, 123, 115, 23);
		contentPane.add(botao_func);
		
		JLabel lblId = new JLabel("ID");
		lblId.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblId.setBounds(100, 153, 20, 14);
		contentPane.add(lblId);
		
		campo_id = new JTextField();
		campo_id.setColumns(10);
		campo_id.setBounds(218, 151, 119, 20);
		contentPane.add(campo_id);
		
		JLabel lblNome = new JLabel("Nome");
		lblNome.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblNome.setBounds(100, 183, 40, 14);
		contentPane.add(lblNome);
		
		campo_user = new JTextField();
		campo_user.setColumns(10);
		campo_user.setBounds(218, 211, 119, 20);
		contentPane.add(campo_user);
		
		campo_nome = new JTextField();
		campo_nome.setColumns(10);
		campo_nome.setBounds(218, 181, 119, 20);
		contentPane.add(campo_nome);
		
		JLabel lblSenha = new JLabel("Senha");
		lblSenha.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblSenha.setBounds(100, 243, 40, 14);
		contentPane.add(lblSenha);
		
		JLabel lblUsurio = new JLabel("Usu\u00E1rio");
		lblUsurio.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblUsurio.setBounds(100, 213, 40, 14);
		contentPane.add(lblUsurio);
		
		JLabel lblConfirmarSenha = new JLabel("Confirmar Senha");
		lblConfirmarSenha.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblConfirmarSenha.setBounds(100, 273, 97, 14);
		contentPane.add(lblConfirmarSenha);
		
		JButton botao_ok = new JButton("OK");
		botao_ok.setIcon(new ImageIcon(Users.class.getResource("/Imagens/Ok.png")));
		botao_ok.setBounds(166, 408, 89, 23);
		contentPane.add(botao_ok);
		
		JButton ajuda = new JButton("");
		ajuda.setIcon(new ImageIcon(Users.class.getResource("/Imagens/Ajuda.png")));
		ajuda.setBounds(10, 351, 80, 80);
		contentPane.add(ajuda);
		
		JButton sobre = new JButton("");
		sobre.setIcon(new ImageIcon(Users.class.getResource("/Imagens/Sobre.png")));
		sobre.setBounds(344, 351, 80, 80);
		contentPane.add(sobre);
		
		senha_senha = new JPasswordField();
		senha_senha.setBounds(218, 241, 119, 20);
		contentPane.add(senha_senha);
		
		senha_confirmar = new JPasswordField();
		senha_confirmar.setBounds(218, 271, 119, 20);
		contentPane.add(senha_confirmar);
	}
}
